using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[Serializable]
public enum RoomType{
    /// <summary>
    /// 初始房间
    /// </summary>
    Index,
    /// <summary>
    /// 普通房间
    /// </summary>
    Page,
    /// <summary>
    /// 终点房间
    /// </summary>
    End,
    /// <summary>
    /// 导航房间
    /// </summary>
    Nav,
    /// <summary>
    /// 资源房间
    /// </summary>
    Res,
    /// <summary>
    /// BOSS房间
    /// </summary>
    BOSS
}

public class Room : MonoBehaviour
{   
    [Tooltip("房间类型")]
    public RoomType type;
    /// <summary>
    /// 房间ID，在房间生成时赋值
    /// </summary>
    [Tooltip("ID|Disable")]
    public int roomId;

    [Tooltip("连接数")]
    public int linkNum;

    [Tooltip("连接房间|Disable")]
    public List<Room> linkRooms;

    [Tooltip("返回连接|Disable")]
    public Room linkReturn;

    public override string ToString(){
        return "[id: "+ roomId + " name: " + name + " link: " + linkNum + "]";
    }
}
